package com.ipay.wechat.service;

import com.ipay.wechat.pojo.WechatLogin;

import java.util.List;

public interface LoginService {

	WechatLogin findWechatLogin(String mobilephone);

	void insertWechatLogin(String mobilephone, int status, String openid);

	WechatLogin findWechatLoginByOpenid(String openid);

	List<WechatLogin> findWechatLoginByMerchantId(String merchantId,String codeNo);

	boolean updateWechatLogin(int status, String mobile, String openid);
	
	void updateWechatLoginByOpenid(int status, String mobile, String openid);

	int saveUserInfoUpdateCashierState(String mobile, String openid);
	
    public String getValidCode(String mobile);
}
